package com.zhiyou100.service;

import java.util.ArrayList;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhiyou100.dao.ProgressDao;
import com.zhiyou100.model.Progress;
@Service
public class ProgressServiceImpl implements ProgressService{
@Autowired
	private ProgressDao progressDao;
	public ArrayList<Progress> findByProjectId(int projectId) {
		ArrayList<Progress> al = progressDao.findByProgressId(projectId);
		
		return al;
	}

	public Progress fingById(int id) {
		return progressDao.fingById(id);
	}

	public void add(Progress progress) {
		progressDao.add(progress);
	}

}
